package com.zh.jbet.core.tournament.entity;

import java.util.List;

import com.zh.jbet.core.entity.Bet;
import com.zh.jbet.core.entity.Player;
import com.zh.jbet.core.scorer.TargetGameScorer;
import com.zh.jbet.core.tournament.scorer.TeamBetScorer;

@TargetGameScorer(scorer=TeamBetScorer.class)
public class TeamsBet implements Bet {
    private Long id;
    private List<Team> teams;
    private Player player;
    private Long    gameId;
    private Long playerGameId;
    private Integer point;

    public Long getId() {
        return id;
    }
    public void setId(Long id) {
        this.id = id;
    }

    @Override
    public Long getGameId() {
        return gameId;
    }
    public void setGameId(Long gameId) {
        this.gameId = gameId;
    }

    @Override
    public Integer getPoint() {
        return point;
    }
    public void setPoint(Integer point) {
        this.point = point;
    }

    @Override
    public Player getPlayer() {
            return player;
    }
    public void setPlayer(Player player) {
            this.player = player;
    }

    public List<Team> getTeams() {
            return teams;
    }
    public void setTeams(List<Team> teams) {
            this.teams = teams;
    }

    @Override
    public boolean isFilled() {
            return teams != null && teams.size() > 0;
    }
    @Override
    public Long getPlayerGameId() {
        return playerGameId;
    }

    public void setPlayerGameId(Long playerGameId) {
        this.playerGameId = playerGameId;
    }
}
